import 'dart:convert';

import 'package:largefriends/entity/json/json_parse_utils.dart';

class LfCityEntity {
  LfCityEntity({
    this.cityId,
    this.cityName,
  });

  factory LfCityEntity.fromJson(Map<dynamic, dynamic> jsonRes) => LfCityEntity(
        cityId: jsonRes.asString('cityId'),
        cityName: jsonRes.asString('cityName'),
      );

  String? cityId;
  String? cityName;

  @override
  String toString() {
    return jsonEncode(this);
  }

  Map<String, dynamic> toJson() => <String, dynamic>{
        'cityId': cityId,
        'cityName': cityName,
      };
}
